import exceptions.BussException;

/**
 * Created by shuoGG on 2018/8/3
 */
public class RetryUtilTest {
    public static void main(String[] args) {
        RetryUtil.tryN(() -> {
            System.out.println("I am trying...");
            try {
                Thread.sleep(3000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }, 3, 2);
    }
}
